﻿(function (root) {
    root.LongRunning = root.LongRunning || {};
    function fact(n) {
        if (n == 0 || n == -1) return 1;
        else return n * fact(n - 1);
    }
    root.LongRunning.factorial = fact;

    function fib(n) {
        if (n == 0 || n == 1) return 1;
        else return fib(n - 1) + fib(n - 2);
    }

    root.LongRunning.fibonacci = fib;
})(this);